package top.byteio.common.core.constants;


/**
 * MQ常量
 * @author lerryxia
 **/
public final class MqConstants {

    /**
    * 分布式锁key前缀
    */
    public static final String LOCK_KEY = "MQ::LOCK::";

    /**
    * 获取锁超时时长： 单位s
     * 默认15秒
    */
    public static final int LOCK_TIMEOUT = 15;

    /**
    * 生产者标识
    */
    public static final String PRODUCER = "PRODUCER";

    /**
    * 消费者标识
    */
    public static final String CONSUMER = "CONSUMER";

    /**
     * 缓存 key前缀
     **/
    public static final String CACHE_KEY = "MQ::CACHE::";
}
